package com.tbit.uqbike.service.rpcservice;

import com.tbit.uqbike.object.pojo.Machine;
import com.tbit.uqbike.object.pojo.MachineBorrow;
import com.tbit.uqbike.object.pojo.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @Author HZW
 * @ClassName ToutiaoAwardStrategyService
 * @Description
 * @date 2022/5/9 9:18
 * @Version 1.0
 */
@Slf4j
@Service
public class ToutiaoAwardStrategyService extends BaseAwardTemplate implements AwardStrategy {

    @Override
    public String getSource() {
        return "0";
    }

    @Override
    public Boolean finishRideOrder(String userCode, Integer money, String remark, String secret) {
        return super.awardTemplate(userCode, money, remark, secret);
    }

    /**
     * 具体的扣款实现
     *
     * @return {@link Boolean}
     */
    @Override
    protected Boolean cutPayment(User user, MachineBorrow machineBorrow, Machine machine, Integer money, String remark) {
        return null;
    }
}
